<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/26
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String loginName=(String)session.getAttribute("loginName");
    String pwd = (String)session.getAttribute("pwd");
    session.setMaxInactiveInterval(5);//设置session会话的有效期为5秒
    String name = request.getParameter("loginName");
%>
<%=loginName%>用户登录成功！密码为<%=pwd%>
</body>
</html>
